// 本地存储工具，token等
const TOKEN_KEY = import.meta.env.VITE_TOKEN_KEY || 'TOKEN'

export function getToken() {
  return localStorage.getItem(TOKEN_KEY)
}

export function setToken(token: string) {
  localStorage.setItem(TOKEN_KEY, token)
}

export function removeToken() {
  localStorage.removeItem(TOKEN_KEY)
} 